package com.jason.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @ClassName CustomWebProperties
 * @Description TODO
 * @Author Jason
 * @Date 2019/1/24 15:51
 * @Version 1.0
 **/
@ConfigurationProperties(prefix = "custom.web") //与配置文件中开头相同
public class CustomWebProperties {

    private Boolean enableJwtValidation;
    private Boolean enableCorsOrigins;
    private Boolean enableShiroFilter;

    public CustomWebProperties() {
        this.enableJwtValidation = false;
        this.enableCorsOrigins = false;
        this.enableShiroFilter = false;
    }

    public Boolean getEnableJwtValidation() {
        return enableJwtValidation;
    }

    public void setEnableJwtValidation(Boolean enableJwtValidation) {
        this.enableJwtValidation = enableJwtValidation;
    }

    public Boolean getEnableCorsOrigins() {
        return enableCorsOrigins;
    }

    public void setEnableCorsOrigins(Boolean enableCorsOrigins) {
        this.enableCorsOrigins = enableCorsOrigins;
    }

    public Boolean getEnableShiroFilter() {
        return enableShiroFilter;
    }

    public void setEnableShiroFilter(Boolean enableShiroFilter) {
        this.enableShiroFilter = enableShiroFilter;
    }
}
